package com.yam.michael.hibernate.dao;

import java.util.List;

import com.xunjia.exception.XunjiaException;
import com.yam.michael.hibernate.pojo.AdvActivity;

public interface AdvActivityDao {
	/**
	 * 添加广告群组信息
	 * @param advActivity
	 * @return
	 * @throws XunjiaException
	 */
	public Long addAdvActivity(AdvActivity advActivity) throws XunjiaException;
	/**
	 * 删除广告活动信息
	 * @param advActivity
	 * @throws XunjiaException
	 */
	public void deleteActivity(AdvActivity advActivity)throws XunjiaException;
	/**
	 * 更新广告活动信息
	 * @param advActivity
	 * @throws XunjiaException
	 */
	public void updateActivity(AdvActivity advActivity) throws XunjiaException;
	/**
	 * 按广告系列ID获取广告活动
	 * @return
	 * @throws XunjiaException
	 */
	public List<AdvActivity> getAdvActivity(long sid) throws XunjiaException;
}
